<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>mycss</title>
    <style>
        body {
            font-size: 20px;
        }
        div {
            color: purple;
            font-size: 16px;
        }
        .c1 {
            text-align: center;
        }
        .c2 {
            background-color: gray;
        }
        p.c3 {
            text-align: right;
        }
        div .c4 {
            text-decoration: underline;
        }
        #id1 {
            font-weight: bold;
        }
        h1, .c1, #id1 {
            font-variant: small-caps;
        }
        a:link {  /*设置访问前的样式*/
            text-decoration: none;
        }
        a:visited {   /*设置访问后的样式*/
            color: gray;
        }
        a:hover {   /*鼠标悬停*/
            font-size: 2em;
            text-decoration: underline;
        }
    </style>
</head>
<body>
<hr>
<div>
    <a href="http://www.sohu.com" target="_blank">sohu</a>
</div>
<h1 class="c1">达内云计算 nsd2002</h1>
<div>达内云计算 <span class="c4">nsd2002</span></div>
<div class="c1 c2">达内云计算 nsd2002</div>
<div class="c3">达内云计算 nsd2002</div>
<div id="id1">达内云计算 nsd2002</div>
<div>达内云计算 nsd2002</div>
<div>达内云计算 nsd2002</div>
<p class="c1">达内云计算 nsd2002</p>
<p class="c3">达内云计算 nsd2002</p>
<p>达内云计算 <span class="c4">nsd2002</span></p>
<p>达内云计算 nsd2002</p>
</body>
</html>